package com.catal.framework.data;

public class DWRCondition {
	private Condition conditon;
	private And and;
	private Or or;
	private int type; //1 -普通condition,2 - And类型，3-Or
	
	public Condition getConditon() {
		return conditon;
	}
	public void setConditon(Condition conditon) {
		this.conditon = conditon;
	}
	public And getAnd() {
		return and;
	}
	public void setAnd(And and) {
		this.and = and;
	}
	public Or getOr() {
		return or;
	}
	public void setOr(Or or) {
		this.or = or;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	@Override
	public String toString() {
		if(type == 1){
			return conditon.toString();
		}else if(type == 2){
			return and.toString();
		}else if(type == 3){
			return or.toString();
		}
		
		return "";
	}
}
